package org.lanqiao.tjut.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.PowerBean;
import org.lanqiao.tjut.dao.IPowerBeanDao;
import org.lanqiao.tjut.service.IPowerInfoService;
import org.springframework.stereotype.Service;
@Service("powS")
public class IPowerInfoServiceImpl implements IPowerInfoService {
	@Resource
	private IPowerBeanDao powDao;

	@Override
	public int deleteByPrimaryKey(String pId) {
		int i = 0;
		i = powDao.deleteByPrimaryKey(pId);
		return i;
	}

	@Override
	public int insert(PowerBean powB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = powDao.insert(powB);
		return i;
	}

	@Override
	public int insertSelective(PowerBean powB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = powDao.insertSelective(powB);
		return i;
	}

	@Override
	public PowerBean selectByPrimaryKey(String pId) {
		// TODO Auto-generated method stub
		PowerBean pow = null;
		pow = powDao.selectByPrimaryKey(pId);
		return pow;
	}

	@Override
	public int updateByPrimaryKeySelective(PowerBean powB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = powDao.updateByPrimaryKeySelective(powB);
		return i;
	}

	@Override
	public int updateByPrimaryKey(PowerBean powB) {
		// TODO Auto-generated method stub
		int i = 0;
		i = powDao.updateByPrimaryKey(powB);
		return i;
	}

	@Override
	public List<PowerBean> selectPowerInfoByParams(PowerBean powB) {
		// TODO Auto-generated method stub
		List<PowerBean> lstPowS = null;
		lstPowS = powDao.selectPowerInfoByParams(powB);
		return lstPowS;
	}

}
